﻿// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
// for details on configuring this project to bundle and minify static web assets.

// Write your JavaScript code.
$("#main-menu").css({
    height: (window.innerHeight-70)+'px'
});

// 手动通过点击模拟高亮菜单项
$('#main-menu').on('click', 'a', function () {
    $('#main-menu li.active').removeClass('active');
    $(this).closest('li').addClass('active');
});